#ifndef SENDFILEBOX_H
#define SENDFILEBOX_H

#include <QWidget>
#include "UserLayer/GUI/ChatWidget/filebox.h"
#include <QDesktopServices>
#include <QFileInfo>
#include <QUrl>

namespace Ui {
class SendFileBox;
}

class SendFileBox : public FileBox
{
    Q_OBJECT

public:
    explicit SendFileBox(QWidget *parent = nullptr);
    ~SendFileBox();
    void setAvatar(const QPixmap avatar) override;
    void setImg(const QPixmap img) override;
    void setText(const QString text);

    QSize getSize()override;
    QString getFileName();
protected:
    void mousePressEvent(QMouseEvent *event) override;
signals:
public slots:
    void setProcess(float value);
    void resetText();
private slots:
    void on_btn_sendfile_clicked();
private:
    Ui::SendFileBox *ui;

};

#endif // SENDFILEBOX
